package com.ruoyi.generator.config;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class Const {

    public static class filedDic{
        public final static String FIELD_TYPE1 = "number"; //
        public final static String FIELD_TYPE2 = "input"; //
        public final static String FIELD_TYPE3 = "textarea"; //
        public final static String FIELD_TYPE4 = "password"; //
        public final static String FIELD_TYPE5 = "select"; //
        public final static String FIELD_TYPE6 = "cascader"; //级联选择
        public final static String FIELD_TYPE7 = "radio"; //
        public final static String FIELD_TYPE8 = "checkbox"; //
        public final static String FIELD_TYPE9 = "switch"; //
        public final static String FIELD_TYPE10 = "slider"; //滑块
        public final static String FIELD_TYPE11 = "time"; //
        public final static String FIELD_TYPE12 = "time-range"; //
        public final static String FIELD_TYPE13 = "date"; //
        public final static String FIELD_TYPE14 = "date-range"; //
        public final static String FIELD_TYPE15 = "rate"; //评分
        public final static String FIELD_TYPE16 = "color"; //颜色
        public final static String FIELD_TYPE17 = "el-upload"; //文件
        public static Map<String, String> FIELD_TYPE_DIC_MAP = new HashMap<String, String>();
        public static void init() {
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE1 , "INT");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE2 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE3 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE4 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE5 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE6 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE7 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE8 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE9 , "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE10, "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE11, "DATETIME");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE12, "DATETIME");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE13, "DATETIME");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE14, "DATETIME");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE15, "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE16, "VARCHAR");
            filedDic.FIELD_TYPE_DIC_MAP.put(filedDic.FIELD_TYPE17, "VARCHAR");
        }
    }
}
